package com.kwlt.smc.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

/**
 * 	通道
 * @author wangweiheng
 */

@Entity
@Table(name="CHANNEL")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Channel {
	/**
	 * 通道Id
	 */
	private Long channelId;
	/**
	 *编号
	 */
	private String numbers;
	/**
	 * 通道名称
	 */
	private String channelName;
	/**
	 * 通道接入地
	 */
	private String channelAddr;
	/**
	 * 通道描述
	 */
	private String channelDesc;
	/**
	 * 接入号
	 */
	private String accessNumber;
	/**
	 * 签名
	 */
	private String signature;
	/**
	 * 是否可以去签名
	 */
	private String isDelSignature;
	/**
	 * 保底量
	 */
	private String baseAmount;
	/**
	 * 速度
	 */
	private String speed;
	/**
	 * 通道序号
	 */
	private String channelSerialNumber;
	/**
	 * 下行路径
	 */
	private String mtDir;
	/**
	 * 上行路径
	 */
	
	private  String moDir;
	/**
	 * 状态报告路径
	 */
	private String rptDir;
	/**
	 * 所属运营商
	 */
	private String operators;
	/**
	 * 业务代码
	 */
	private String serviceCode;
	
	private String status;
	/**
	 * 权重
	 */
	private Long weight;
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	public Long getChannelId() {
		return channelId;
	}
	public void setChannelId(Long channelId) {
		this.channelId = channelId;
	}
	
	public String getNumbers() {
		return numbers;
	}
	public void setNumbers(String numbers) {
		this.numbers = numbers;
	}
	public String getChannelName() {
		return channelName;
	}
	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	public String getChannelAddr() {
		return channelAddr;
	}
	public void setChannelAddr(String channelAddr) {
		this.channelAddr = channelAddr;
	}
	public String getChannelDesc() {
		return channelDesc;
	}
	public void setChannelDesc(String channelDesc) {
		this.channelDesc = channelDesc;
	}
	public String getAccessNumber() {
		return accessNumber;
	}
	public void setAccessNumber(String accessNumber) {
		this.accessNumber = accessNumber;
	}
	public String getSignature() {
		return signature;
	}
	public void setSignature(String signature) {
		this.signature = signature;
	}
	public String getIsDelSignature() {
		return isDelSignature;
	}
	public void setIsDelSignature(String isDelSignature) {
		this.isDelSignature = isDelSignature;
	}
	public String getBaseAmount() {
		return baseAmount;
	}
	public void setBaseAmount(String baseAmount) {
		this.baseAmount = baseAmount;
	}
	public String getSpeed() {
		return speed;
	}
	public void setSpeed(String speed) {
		this.speed = speed;
	}
	public String getChannelSerialNumber() {
		return channelSerialNumber;
	}
	public void setChannelSerialNumber(String channelSerialNumber) {
		this.channelSerialNumber = channelSerialNumber;
	}
	
	public String getMtDir() {
		return mtDir;
	}
	public void setMtDir(String mtDir) {
		this.mtDir = mtDir;
	}
	public String getMoDir() {
		return moDir;
	}
	public void setMoDir(String moDir) {
		this.moDir = moDir;
	}
	public String getRptDir() {
		return rptDir;
	}
	public void setRptDir(String rptDir) {
		this.rptDir = rptDir;
	}
	
	
	public String getOperators() {
		return operators;
	}
	public void setOperators(String operators) {
		this.operators = operators;
	}
	
	
	public String getServiceCode() {
		return serviceCode;
	}
	public void setServiceCode(String serviceCode) {
		this.serviceCode = serviceCode;
	}
	
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Transient
	public Long getWeight() {
		return weight;
	}
	public void setWeight(Long weight) {
		this.weight = weight;
	}
	public Channel() {
	}
	
}
